<td width="727"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="727" height="47" valign="top" background="img/bar_blue.jpg"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="10" height="47">&nbsp;</td>
                                        <td width="23" height="47"><img src="img/bar_flblue.jpg" width="23" height="23"></td>
                                        <td width="10" height="47">&nbsp;</td>
                                        <td height="47" class="tahoma12W"><strong> 
                                          <?php echo $lang['CONTENT_TITLE_CONTACT_US']; ?></strong></td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="878" valign="top" >
								  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #CCCCCC;">
                                      <tr> 
                                        <td height="601" valign="top" ><table width="100%" height="878" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td height="763" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr> 
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                  <tr> 
                                                    <td width="10">&nbsp;</td>
                                                    <td align="left" valign="top" class="arial12G66">
													
														<table width="100%" border="0" cellspacing="0" cellpadding="0">
															<tr> 
															  <td width="382"> <img src="img/imp_map.jpg" width="382" height="321"> 
																</td>
															  <td width="10">&nbsp;</td>
															  <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
																  <tr> 
																	<td class="arial13CK"><strong><?php echo NAMA_COMPANY ?></strong></td>
																  </tr>
																  <tr> 
																	<td height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="6"></td>
																  </tr>
																  <tr> 
																	<td class="arial10G660">Monday 
																	  - Friday (9am - 
																	  2pm)<br>
																	  Saturday (9am - 
																	  2pm) *Closed on 
																	  2nd Saturdays</td>
																  </tr>
																  <tr> 
																	<td height="3" valign="top">&nbsp;</td>
																  </tr>
																  <tr> 
																	<td height="3" valign="top"><span class="arial11G66"><strong><?php echo $lang['FORM_ADDRESS']; ?>:</strong></span><br> 
																	  <span class="arial11G66">No 
																	  9, Jalan 6,Taman 
																	  Batu, Off Jalan 
																	  Greenwood Park,<br>
																	  68100 Batu Caves, 
																	  Selangor</span></td>
																  </tr>
																  <tr> 
																	<td height="10" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
																  </tr>
																  <tr> 
																	<td class="arial13CK"><table width="100%" border="0" cellspacing="0" cellpadding="0">
																		<tr class="arial11G66"> 
																		  <td width="30"><strong>Tel.<br>
																			Fax</strong></td>
																		  <td width="10"><strong>:<br>
																			: </strong></td>
																		  <td>(03) 6189 
																			0484 / (03) 
																			6189 0485<br>
																			(03) 6187 
																			1530</td>
																		</tr>
																	  </table></td>
																  </tr>
																  
																  <tr> 
																	<td height="10" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
																  </tr>
																  <tr> 
																	<td  valign="top" > 
																	</td>
																  </tr>
																  <tr> 
																	<td><span class="arial11G66"><?php echo $lang['CONTENT_CLICK']; ?> 
																	  </span><a href="img/mapAna.gif" target="_blank" class="arial11G66"><strong><?php echo $lang['CONTENT_HERE']; ?> </strong></a><span class="arial11G66"> 
																	  <?php echo $lang['CONTENT_DOWNLOAD_MAP']; ?></span></td>
																  </tr>
																  <tr> 
																	<td height="10" valign="top" class="arial11G66"><img src="img/spec_blank.gif" width="10" height="10"></td>
																  </tr>
																  <tr>
																	<td><span class="arial11G66"><?php echo $lang['CONTENT_CLICK']; ?>  
																	  </span><a target="_blank" href="http://maps.google.com/maps/ms?ie=UTF&msa=0&msid=216843609723712330038.0004bfa8d12eab51f3a94" class="arial11G66"><strong><?php echo $lang['CONTENT_HERE']; ?></strong></a><span class="arial11G66"> 
																	  <?php echo $lang['CONTENT_VIEW_GOOGLEMAP']; ?></span></td>
																  </tr>
																</table>
																
																</td>
															</tr>
														</table>
													 <br />
													 <table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td>
																<h2>Senarai Stokis Seluruh Malaysia</h2>
																<?php 
																	$Qstokis = "SELECT s.state FROM stokis s,states e WHERE s.state = e.code   GROUP BY s.state ORDER BY e.state ASC ";
																	$Rstokis = $db->sql_fetch($Qstokis);
																	echo '<div>';
																	foreach($Rstokis as $i){
																		
																		$Qstate = "SELECT * FROM states  where code = '$i[state]'";
																		$Rstate = $db->sql_list($Qstate);
																		echo '<p><span style="font-size:14px;"><strong>'.$Rstate['state'].':</strong></span>';
																		
																		$Qstokis1 = "SELECT * FROM city where state_code='$i[state]' ORDER BY city ";
																		$Rstokis1 = $db->sql_fetch($Qstokis1);
																		foreach($Rstokis1 as $i1){
																			echo '<br />';
																			echo '<strong>&nbsp;&nbsp;'.$i1['city'].'</strong>';
																			
																			$Qstokis2 = "SELECT * FROM stokis where city='$i1[id]' ORDER BY nama ";
																			$Rstokis2 = $db->sql_fetch($Qstokis2);
																			foreach($Rstokis2 as $i2){
																				echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$i2['nama'].' '.$i2['no_tel'];        
																			}
																		}
																		echo '</p>';
																	}
																	echo '</div>';
																?>
															
															<?php //include ('liststokis.inc'); ?></td>
														</tr>
													 </table>
													 <br />
													 <h2><?php echo $lang['CONTENT_FEEDBACK']; ?></h2>  
													 <br />
													<?php
	
																if(isset($_POST['submit'])){
																	if(empty($_POST['name'])){
																		$errors[] = $lang['ERROR_NAME'];
																	}
																	
																	if (valid_email($_POST['email'])==FALSE){
																		$errors[] = $lang['ERROR_EMAIL_NOTVALID'];
																	}
																	
																	if(empty($_POST['notel'])){
																		$errors[] = $lang['ERROR_PHONE'];
																	}
																	if(empty($_POST['feedback']) || strlen(trim($_POST['feedback'])) == 0){
																		$errors[] = $lang['ERROR_FEEDBACK'];
																	}
																	if(is_array($errors)){
																		echo '
																		<table width=500  border=0 cellspacing=0 cellpadding=0>
																		<tr>
																			<td>
																		<div style="margin-bottom:10px;font-family: tahoma; font-size: 11px;">';
																		echo '<p style="padding:0px; margin:0px; color:red;"><b>'.$lang['CONTENT_ERROR_OCCUR'].'</b></p>';
																		while (list($key,$value) = each($errors))
																		{
																			echo '<span style="padding:10px;color:red;">'.$value.'</span><br />';
																		}
																		echo '</div> </td></tr></table>';
																	}else{
																		$email = mysql_real_escape_string($_POST['email']); 
																		$name = mysql_real_escape_string($_POST['name']); 
																		$phoneNo = mysql_real_escape_string($_POST['notel']); 
																		$feedback = mysql_real_escape_string($_POST['feedback']); 
																		
																		
																		
																		
																			$createf= "INSERT INTO feedback (name, email, notel, feedback,status, created_date) VALUES 
																			('$name','$email','$phoneNo','$feedback','0', NOW())";
																			$result = $db->sql_query($createf);
																			
																			if ($result){	
																			   $_POST['email'] = '';
																			   $_POST['name'] = '';
																			   $_POST['notel'] = '';
																			   $_POST['feedback'] = '';
																				echo'
																					<table width=500  border=0 cellspacing=0 cellpadding=0>
																						
																						<tr>
																							<td><div style="font-weight:bold;font-size:11px; font-family:tahoma;">
																									'.$lang['CONTENT_FEEDBACK_SUCCESS'].'<br />
																									'.$lang['CONTENT_THANKS'].'
																									</div>
																							</td>
																						</tr>
																						<tr>
																							<td height=15>
																							</td>
																						</tr>
																					</table>
																					
																					';
																			}
																		
																		
																	}
																
																}
															
													?>
																		
													<form action="" method="POST">	
																<table width="500" align="left" border="0" cellspacing="0" cellpadding="0">
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_NAME']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="name" 
																			value="<?php if($_SESSION['name'] != null){ echo $_SESSION['name'] ;} else {if($_POST['name']!= null) { echo $_POST['name'];}} ?>" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_EMAIL']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="email" 
																			value="<?php if($_SESSION['email'] != null){ echo $_SESSION['email'] ;} else {if($_POST['email']!= null) { echo $_POST['email'];}} ?>" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PHONE']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="text" name="notel" 
																			value="<?php if($_SESSION['notel'] != null){ echo $_SESSION['notel'] ;} else {if($_POST['notel']!= null) { echo $_POST['notel'];}} ?>" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_FEEDBACK']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G" >
																		
																			<textarea style="overflow:hidden; width:237px;"
																				rows="7"  name="feedback" id="feedback" >
																				<?php echo $_POST['feedback']; ?>
																			</textarea>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="3" class="tahoma11G">
																			<button name="submit" type="submit" style="border: 0; background: transparent;float:right; margin-right:78px;
																				cursor:pointer;">
																			    <img src="img/btn_submit.jpg" width="53" height="22"  alt="submit" />
																			</button>
																		</td>
																	</tr>
																</table>
															</form>  
																		<script  type="text/javascript">
																			function trim(str) {
																				return str.replace(/^\s+|\s+$/g, '');
																			}
																			function clearFieldFirstTime(element) {
																			 alert(element.value);
																			  if (element.counter==undefined) {
																				element.counter = 1;
																			  }

																			  else {
																				element.counter++;
																			  }

																			  if (element.counter == 1) {
																				element.value = '';
																			  }
																			}
																			
																			$(document).ready(function(){
																			    //alert('hiii');
																				var text = $('#feedback').val();
																				

																				//alert(text);
																				$('#feedback').val($.trim(text));
																			});
																		</script>
													  
													  
                                                    </td>
                                                    <td width="10">&nbsp;</td>
                                                  </tr>
                                                  <tr> 
												  
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>